package cn.b.sky.user.service;

import cn.b.sky.user.service.model.ParameterEntity;
import cn.b.sky.user.service.model.ParameterFolder;
import cn.b.sky.user.service.model.ParameterValue;

import java.util.List;

/**
 * 
 * <strong>Title : ParameterService.java<br></strong>
 * <strong>Package : cn.b.sky.user.service<br></strong>
 * <strong>Description : </strong>通用配置服务<br> 
 * <strong>Create on : 2015-8-12 下午5:45:00<br></strong>
 * <p>
 * @author lidapeng<br>
 * @version <strong>v1.0.0</strong><br>
 * <br>
 * <strong>修改历史:</strong><br>
 * 修改人 | 修改日期 | 修改描述<br>
 * -------------------------------------------<br>
 * <br>
 * <br>
 */
public interface ParameterService {
  public List<ParameterFolder> getAllParameterFolder(String siteCode);

  public void saveParameterFolder(ParameterFolder folder);

  public void saveSyParameter(ParameterEntity parameter);

  public ParameterEntity getParameterEntityByCode(String parameterCode, String siteCode);

  public ParameterFolder getParameterFolderByCode(String folderCode, String siteCode);

  public void deleteConfigCategory(String folderCode, String siteCode);

  public void deleteConfig(String parameterCode, String siteCode);

  public List<ParameterValue> getParameterValuesByPCode(String parameterCode, String siteCode);

  public void modifyParameterFolder(ParameterFolder folder);

  public void modifySyParameter(ParameterEntity parameter);

  public List<ParameterValue> getParameterValueBySql(String sql);

}
